﻿@using CyScada.Model
<!DOCTYPE html>
<html lang="en">
<head>
    @{
        if(ViewBag.total==null){
            ViewBag.total = 100000000;
        }
    }
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>物联网远程设备集中监控管理演示平台</title>

    <meta name="description" content="彩云数据采集" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="/assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/assets/css/font-awesome.min.css" />

    <!-- page specific plugin styles -->
    <!-- text fonts -->
    <link rel="stylesheet" href="/assets/css/ace-fonts.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="/assets/css/ace.min.css" />

    <!--[if lte IE 9]>
        <link rel="stylesheet" href="/assets/css/ace-part2.min.css" />
    <![endif]-->
    <link rel="stylesheet" href="/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="/assets/css/ace-rtl.min.css" />

    <!--[if lte IE 9]>
      <link rel="stylesheet" href="/assets/css/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="/assets/js/ace-extra.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lte IE 8]>
    <script src="/assets/js/html5shiv.js"></script>
    <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
    

    <link href="/css/Site.css" rel="stylesheet">
    
    @*<script src="/js/jquery/jquery.min.js"></script>*@
    
    <!-- basic scripts -->
    <!--[if !IE]> -->
    <script type="text/javascript">
        window.jQuery || document.write("<script src='/assets/js/jquery.min.js'>" + "<" + "/script>");
    </script>

    <!-- <![endif]-->
    <!--[if IE]>
    <script type="text/javascript">
     window.jQuery || document.write("<script src='/assets/js/jquery1x.min.js'>"+"<"+"/script>");
    </script>
    <![endif]-->
    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>

    <script type="text/javascript" src="/js/angularjs/angular.min.js"></script>

    <script src="/js/_sideMenu/_sideMenu4.js"></script> 

    @RenderSection("HeadSection", false)
    <style>
        @@media only screen and (max-width:768px){
            small,.small {
             font-size: 60%;
            }
        }
    </style>
</head>

<body class="no-skin">
    <!-- #section:basics/navbar.layout -->
    <div id="navbar" class="navbar navbar-default">
        <script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed');}catch(e){}
        </script>

        <div class="navbar-container" id="navbar-container">
            <!-- #section:basics/sidebar.mobile.toggle -->
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
                <span class="sr-only">Toggle sidebar</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <!-- /section:basics/sidebar.mobile.toggle -->
            <div class="navbar-header pull-left">
                <!-- #section:basics/navbar.layout.brand -->
                <a href="#" class="navbar-brand">
                    <small>
                        <i class="icon-cloud"></i>
                        物联网远程设备集中监控管理演示平台
                    </small>
                </a>

                <!-- /section:basics/navbar.layout.brand -->
                <!-- #section:basics/navbar.toggle -->
                <!-- /section:basics/navbar.toggle -->
            </div>

            <!-- #section:basics/navbar.dropdown -->
            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li style="color:white;" id="onlinepane">
                        当前在线人数:&nbsp;&nbsp;<span style="" id="online">@ViewBag.total</span>&nbsp;&nbsp;&nbsp;&nbsp;
                    </li>
                    <!-- #section:basics/navbar.user_menu -->
                    <li class="light-blue">
                       
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle" id="userId" data-userid="@ViewBag.Id">
                            <img class="nav-user-photo" src="/img/user.png" alt="@ViewBag.Name" />
                            <span class="user-info">
                                <small>欢迎光临,</small>
                                @ViewBag.Name
                            </span>

                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li>
                                <a href="/Login/Index">
                                    <i class="ace-icon fa fa-power-off"></i>
                                    退出
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- /section:basics/navbar.user_menu -->
                </ul>
            </div>

            <!-- /section:basics/navbar.dropdown -->
        </div><!-- /.navbar-container -->
    </div>

    <!-- /section:basics/navbar.layout -->
    <div class="main-container" id="main-container">
        <script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
        </script>

        <!-- #section:basics/sidebar -->
        <div id="sidebar" class="sidebar                  responsive">
            <script type="text/javascript">
					try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
            </script>

            @{ Html.RenderPartial("_SideMenu3", new UserModel { Name = @ViewBag.Name, Id = Convert.ToInt32(@ViewBag.Id) });}


            <!-- #section:basics/sidebar.layout.minimize -->
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>

            <!-- /section:basics/sidebar.layout.minimize -->
            <script type="text/javascript">
					try{ace.settings.check('sidebar' , 'collapsed');}catch(e){}
            </script>
        </div>

        <!-- /section:basics/sidebar -->
        <div class="main-content">
            <div class="page-content">
               <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        @RenderBody()
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div><!-- /.main-content -->

        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
            <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
        </a>
    </div><!-- /.main-container -->
 
    <script src="/assets/js/bootstrap.min.js"></script>

    <!-- page specific plugin scripts -->
    <!-- ace scripts -->
    <script src="/assets/js/ace-elements.min.js"></script>
    <script src="/assets/js/ace.min.js"></script>

    <!-- inline scripts related to this page -->
    <script type="text/javascript">
        jQuery(function($) {

            var toggler = $('#menu-toggler');
            var fixed = toggler.hasClass('fixed');
            var display = toggler.hasClass('display');


            $('#menu-toggler').remove();
            toggler = $('.navbar-brand').before('<button id="menu-toggler" class="three-bars pull-left menu-toggler navbar-toggle" type="button">\
            			<span class="sr-only">Toggle sidebar</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>\
            		</button>').prev();
            ace.vars['mobile_style'] = 1;

            if (fixed) toggler.addClass('fixed');
            if (display) toggler.addClass('display');

            if ('sidebar_scroll' in ace.helper) ace.helper.sidebar_scroll.reset();

            return false;

            //$('#id-change-style').on(ace.click_event, function() {
            //	var toggler = $('#menu-toggler');
            //	var fixed = toggler.hasClass('fixed');
            //	var display = toggler.hasClass('display');

            //	if(toggler.closest('.navbar').length == 1) {
            //		$('#menu-toggler').remove();
            //		toggler = $('#sidebar').before('<a id="menu-toggler" class="menu-toggler" href="#">\
            //			<span class="sr-only">Toggle sidebar</span>\
            //			<span class="toggler-text"></span>\
            //		 </a>').prev();
            //		 ace.vars['mobile_style'] = 2;

            //		 var icon = $(this).children().detach();
            //		 $(this).text('Hide old style toggle button').prepend(icon);

            //		 $('#id-push-content').closest('div').hide();
            //		 $('#id-push-content').removeAttr('checked');
            //		 $('.sidebar').removeClass('push_away');
            //	 } else {
            //		$('#menu-toggler').remove();
            //		toggler = $('.navbar-brand').before('<button id="menu-toggler" class="three-bars pull-left menu-toggler navbar-toggle" type="button">\
            //			<span class="sr-only">Toggle sidebar</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>\
            //		</button>').prev();
            //		ace.vars['mobile_style'] = 1;

            //		var icon = $(this).children().detach();
            //		$(this).text('Show old style toggle button').prepend(icon);

            //		$('#id-push-content').closest('div').show();
            //	 }

            //	 if(fixed) toggler.addClass('fixed');
            //	 if(display) toggler.addClass('display');

            //	 if('sidebar_scroll' in ace.helper) ace.helper.sidebar_scroll.reset();

            //	 return false;
            //});

            //$('#id-push-content').removeAttr('checked').on('click', function() {
            //	$('.sidebar').toggleClass('push_away');
            //});
        });
    </script>

    <link rel="stylesheet" href="/assets/css/ace.onpage-help.css" />
    <link rel="stylesheet" href="/docs/assets/js/themes/sunburst.css" />

    <script type="text/javascript"> ace.vars['base'] = '..'; </script>
    <script src="/assets/js/ace/ace.onpage-help.js"></script>
    <script src="/docs/assets/js/rainbow.js"></script>
    <script src="/docs/assets/js/language/generic.js"></script>
    <script src="/docs/assets/js/language/html.js"></script>
    <script src="/docs/assets/js/language/css.js"></script>
    <script src="/docs/assets/js/language/javascript.js"></script>   
     @RenderSection("FootScript", false);
    <script>
        if ($("#online").text() == 100000000) {
            $("#onlinepane").addClass("hidden");
        }
      
    </script>
</body>
</html>
